package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 司机订单记录表
 * </p>
 *
 * @author wd
 * @since 2021-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="HsmwDriverOrderRecord对象", description="司机订单记录表")
public class HsmwDriverOrderRecord extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单车辆需求表id")
    private String relationId;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "车辆ID")
    private String vehicleId;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNum;

    @ApiModelProperty(value = "用户表-司机ID")
    private String driverId;

    @ApiModelProperty(value = "用户表-司机名称")
    private String driverName;

    @ApiModelProperty(value = "用户表-司机手机号")
    private String driverUsername;

    @ApiModelProperty(value = "实际方量")
    private String realVolume;

    @ApiModelProperty(value = "结算方量")
    private String settlementVolume;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    private Boolean flag;

    @ApiModelProperty(value = " 车辆类型 ")
    private String vehicleType;

    @ApiModelProperty(value = " 车牌型号 ")
    private String vehicleModel;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "订单状态：已完成、进行中、已取消")
    private String orderStatus;

    @ApiModelProperty(value = "备注信息")
    private String remark;


    @ApiModelProperty(value = "开始工作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startWorkTime;

    @ApiModelProperty(value = "项目名称")
    private String itemId;

    @ApiModelProperty(value = "项目名称")
    private String itemName;
    @ApiModelProperty(value = "施工单位")
    private String itemPosition;
    @ApiModelProperty(value = "施工部位")
    private String constructionPosition;

    @ApiModelProperty(value = "施工单位名称")
    private String constructionUnitName;

    @ApiModelProperty(value = "工作时间")
    private String workTime;

    @ApiModelProperty(value = "订单个数")
    @TableField(exist = false)
    private String num;

    @ApiModelProperty(value = "挪泵次数")
    private String movePumpCount;

    @ApiModelProperty(value = "地板公里数")
    private String chassisKilometers;


    @ApiModelProperty(value = "司机用户表用户ID")
    private String driverUserId;


    @ApiModelProperty(value = " 车牌品牌 ")
    private String vehicleBrand;

    @ApiModelProperty(value = " 左45度照片")
    private String vehicleLeftImage;

    @ApiModelProperty(value = " 右45度照片")
    private String vehicleRightImage;

    @ApiModelProperty(value = "车轴数量")
    private Integer axis;

    @ApiModelProperty(value = "车辆年限")
    private String years;

    @ApiModelProperty("臂节数")
    private String armSegment;

    @ApiModelProperty("底盘品牌")
    private String chassisBrand;

    @ApiModelProperty("故障率")
    private String trafficRate;

    @ApiModelProperty(value = "司机评分")
    private String score;

    @ApiModelProperty(value = "公司id")
    private String leasingCompanyId;

    @ApiModelProperty(value = "公司名称")
    private String leasingCompanyName;



}
